import logging as log
# 设置日志等级，以及格式，带时间，日志等级
log.basicConfig(level=log.INFO,format='%(asctime)s- %(levelname)s: %(message)s')
log.info("hasaki")
# 2019-06-18 10:05:29,923- INFO: hasaki